import request from "./request";

// export const LoginApi = (params: ILoginParams) =>
//   request.post("/1024/login", params);

// export const LoginApi = (
//   params: ILoginParams
// ): Promise<ILoginRespones<string>> => request.post("/1024/login", params);

// 登陆
export const LoginApi = (params: ILoginParams): RepA<string> =>
  request.post("/1024/login", params);
// 注册
export const RegitserApi = (params: IRegParams): RepA<object> =>
  request.post("/1024/register", params);
// 首页信息
export const HomeApi = (): RepA<IHomeDate> => request.get("/6666");
// 快速刷题
export const FastApi = (): RepA<IFastData> => request.get("/4698");
// 进入练习页面(题目分类列表)
export const ActionApi = (
  actionCode: string | undefined
): RepA<IActionData[]> => request.get(`/1314/${actionCode}/all`);
// 获取题目列表信息
export const QuestionApi = (): RepA<any> => request.post(`/1314`);
